* {
  outline: none; //去掉蓝色框
}

#app,
body,
html {
  height: 100%;
}
body {
  background-color: @background-color-base;
  font-size: 14px;
}

// 隐藏滚动条样式
.i-scrollbar-hide {
  &::-webkit-scrollbar {
    width: 0;
  }
  &::-webkit-scrollbar-track {
    background-color: transparent;
  }
  &::-webkit-scrollbar-thumb {
    background: #e8eaec;
  }
}

// 极简滚动条样式
.i-scrollbar {
  &::-webkit-scrollbar {
    width: 6px;
  }
  &::-webkit-scrollbar-track {
    background-color: transparent;
  }
  &::-webkit-scrollbar-thumb {
    background: #808695;
    border-radius: 4px;
  }
}

// 去除 Table 的左右边框，更精简
.i-table-no-border {
  .ivu-table th {
    background-color: #fff;
  }
  .ivu-table-wrapper,
  .ivu-table tr:last-child td {
    border: none;
  }
  .ivu-table:before,
  .ivu-table:after {
    display: none;
  }
}

//  单行超出隐藏
.qw-w100 {
  width: 100%;
}
.qw-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qw-fl {
  float: left;
}
.qw-fr {
  float: right;
}

// text-align
.qw-text-l {
  text-align: left;
}
.qw-text-r {
  text-align: right;
}
.qw-text-c {
  text-align: center;
}

.qw-cursor {
  cursor: pointer;
}

// margin
.qw-m8 {
  margin: 8px;
}

//dispaly
.qw-disflex {
  display: flex;
}
.qw-disflexC {
  display: flex;
  align-items: center;
}
.qw-disflex-imp {
  display: flex !important;
}
.qw-flex {
  flex: 1;
}

// form
.form-lastitem-right {
  margin-left: auto;
}
.qw-form-txt {
  vertical-align: middle;
  font-size: 14px;
  color: #515a6e;
  line-height: 1;
  padding: 10px 12px 10px 0;
  box-sizing: border-box;
}
.qw-form-card {
  .ivu-card-body {
    padding-bottom: 0;
    .ivu-col .ivu-form-item {
      margin-bottom: 16px;
    }
  }
}

/* modal */
.ivu-modal-footer {
  text-align: center;
  border-top: 0;
}
.qw-edit {
  color: #36c8e6;
  font-size: 14px;
  cursor: pointer;
}

/* card */
.qw-card {
  .ivu-card-head {
    border-bottom: none;
    p {
      color: #5d8ae3;
    }
  }
  .ivu-card-body {
    padding: 10px 64px;
    .ivu-description-term {
      color: #8ca0b3;
    }
    .ivu-description-detail {
      color: #697b8c;
    }
  }
}
.qw-card-noboder {
  .ivu-card-body {
    .ivu-description-term {
      color: #8ca0b3;
    }
    .ivu-description-detail {
      color: #697b8c;
    }
    .ivu-description-list-title {
      color: #5d8ae3;
      font-size: 16px;
      & ~ .ivu-row {
        padding: 10px 64px;
      }
    }
  }
}
.qw-cardtwo {
  .ivu-card-head {
    border-bottom: none;
    p {
      color: #5d8ae3;
    }
    .qw-card-title{
      color: #5d8ae3;
      font-size: 16px;
    }
    .qw-card-subtitle{
      .ivu-btn-ghost{
        color: #5d8ae3;
      }
      .ivu-btn-ghost:focus{
        outline: none;
      }
    }
  }
  .ivu-card-body {
    padding: 0;
  }
}

/* table */
.qw-table-noboder {
  border: none;
  .ivu-table th,
  .ivu-table td {
    border: none;
  }
}

/* 表单底部悬浮按钮 */
.qw-footer-toolbar-center{
  &.ivu-footer-toolbar /deep/ {
    .ivu-footer-toolbar-right{
        float: none;
        text-align: center;;
    }
  }
}
.ivu-select .ivu-select-dropdown{
  max-width: 100%;
}
.qw-select-tooltip{
  width: 100%;
  & /deep/ .qw-select-tooltip-txt,.qw-select-tooltip-txt .ivu-line-clamp {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
.qw-select-tooltip-tip{
  white-space: normal;
}
.ivu-form-item-error {
  margin-bottom: 24px !important;
}
.el-col-6{min-height: 51px;}
.abnormal-tips {
  .el-message-box__content {
    max-height: 400px;
    overflow: auto;
  }
}

.popover__wrap__dark {
  background: #303133;
  color: #fff;
  font-size: 12px;
  &[x-placement^=top] .popper__arrow::after{
    border-top-color: #303133;
  }
  &[x-placement^=bottom] .popper__arrow::after{
    border-top-color: #303133;
  }
  &[x-placement^=left] .popper__arrow::after{
    border-top-color: #303133;
  }
  &[x-placement^=right] .popper__arrow::after{
    border-top-color: #303133;
  }
}
